/*
package com.itheima.health.consumer;

import com.itheima.health.common.RocketMqConst;
import com.itheima.health.message.SmsTask;
import lombok.extern.slf4j.Slf4j;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Component;

@Slf4j
@Component
@RocketMQMessageListener(topic = RocketMqConst.TOPIC_ORDER_SEND, consumerGroup = "sms-order-consumer")
public class SmsOrderMsgConsumer implements RocketMQListener<SmsTask> {

    @Autowired
    private RedisTemplate redisTemplate;

    @Override
    public void onMessage(SmsTask smsTask) {
        log.info("[短信发送消费者]received message: {}", smsTask);
        log.info("[短信发送消费者]预约提醒模拟发送，发送中……");
        log.info("[短信发送消费者]预约提醒发送成功");
    }
}
*/
